﻿package org.ilanchong.droidcontroller;

import java.util.ArrayList;
import java.util.List;

public class ControlCommand {
	public static final String CMD_SHUTDOWN = "cmd:shutdown"; // 关机命令
	public static final String CMD_REBOOT = "cmd:reboot"; // 重启命令
	public static final String CMD_LOGOFF = "cmd:logoff"; // 注销命令
	
	
	/**
	 * music 命令：cmd:music%control
	 *
	 * video 命令类似
	 */
	public static final String CMD_MUSIC = "cmd:music";
	public static final String CMD_VIDEO = "cmd:video";
	
	public static final String CMD_CONTROL_PLAY = "play";
	public static final String CMD_CONTROL_PAUSE = "pause";
	public static final String CMD_CONTROL_STOP = "stop";
	public static final String CMD_CONTROL_NEXT = "next";
	public static final String CMD_CONTROL_PRE = "previous";
	
	public static final String CMD_SELECT_NEXT = "cmd:select%next";
	public static final String CMD_SELECT_PRE = "cmd:select%previous";
	
	/**
		用户体验角度：
		1.上下滑动列表，单操作对应，不可以连贯，比如：向上滑动一下，PC端列表焦点向上移动一位
		2.音乐控制：播放/暂停/下一首/上一首/调整音乐
		3.控制界面层次分析：主控界面/音乐控制界面/视频控制界面/鼠标控制
			1>主控界面：跳转音乐或视频控制界面，其他遥控命令，关机，定时关机，重启等
			2>音乐界面：焦点切换，音乐控制命令按钮
			3>视频界面：焦点切换，音乐控制命令按钮
			4>鼠标界面：模拟实现左右键及中间按键功能
		4.增加远程桌面等功能，（实现情况以及时间暂不考虑该功能）
		
	 */

    private ComputerInfo mComputer = new ComputerInfo();
	private int mPort = 30000;
	private String mCommand = "";
	
	public ControlCommand(ComputerInfo computer, int port, String command){
		mComputer = computer;
		mPort = port;
		mCommand = command;
	}
	
	public void setComputers(ComputerInfo computer) {
		mComputer = computer;
	}
	
	public void setPort(int port) {
		mPort = port;
	}
	
	public void setCommand (String command) {
		mCommand = command;
	}
	
	public ComputerInfo getComputers(){
		return mComputer;
	}
	
	public int getPort() {
		return mPort;
	}
	
	public String getCommand() {
		return mCommand;
	}
}
